package com.jdone.compus.repository;

import com.jdone.compus.model.BlowAnnouncement;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlowAnnouncementRepository extends JpaRepository<BlowAnnouncement, Long> {

    /** 查询所有启用的公告记录 */
    List<BlowAnnouncement> findByEnabledTrue();

}

